package com.lsnu.wzy.po;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

//患者预约记录
public class Appointment {
	private Integer id;
	private String aID;
	private String pName;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date pDate;
	private String dName;
	private String department;
	private int state;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getaID() {
		return aID;
	}
	public void setaID(String aID) {
		this.aID = aID;
	}
	public String getpName() {
		return pName;
	}
	public void setpName(String pName) {
		this.pName = pName;
	}
	public Date getpDate() {
		return pDate;
	}
	public void setpDate(Date pDate) {
		this.pDate = pDate;
	}
	public String getdName() {
		return dName;
	}
	public void setdName(String dName) {
		this.dName = dName;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public Appointment(Integer id, String aID, String pName, Date pDate, String dName,String department,int state) {
		super();
		this.id = id;
		this.aID = aID;
		this.pName = pName;
		this.pDate = pDate;
		this.dName = dName;
		this.department=department;
		this.state=state;
	}
	public Appointment(String aID, String pName, Date pDate, String dName,String department,int state) {
		super();
		this.aID = aID;
		this.pName = pName;
		this.pDate = pDate;
		this.dName = dName;
		this.department=department;
		this.state=state;
	}
	
	
	public Appointment() {
		super();
	}
	@Override
	public String toString() {
		return "Appointment [id=" + id + ", aID=" + aID + ", pName=" + pName + ", pDate=" + pDate + ", dName=" + dName
				+ "]";
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	

}
